package com.teamspyder.scouting;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;

public class Splash extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash);
		Thread timer = new Thread(){
			public void run(){
				try{
					Thread.sleep(3000);
				}catch(InterruptedException e){
					e.printStackTrace();
				}finally{
					//SharedPreferences settings = getPreferences(MODE_PRIVATE);
					//boolean conf = settings.getBoolean("Configured",false);
					//if(!conf){
						Intent openSpyderScouting=new Intent("com.teamspyder.scouting.MAINMENU");
						startActivity(openSpyderScouting);
					//}
					//else{
						//Intent intent = new Intent("com.teamspyder.scouting.FIRSTRUN");
						//startActivity(intent);
					//}
				}
			}
		};
		timer.start();
	}

	@Override
	protected void onPause() {
		super.onPause();
		finish();
	}
	
}
